#ifndef TTSPARAMS_H_
#define TTSPARAMS_H_

#include "Common.h"

class TTSParams
{
    public:
        uint32 Id;
        uint32 Command;
        uint32 Len;

        uint16 Version;
        uint16 CodePage;

        char VoiceGuid[40];

        uint16 Domain;
        uint16 Pitch;
        uint16 Volume;
        uint16 Speed;

        uint16 PuncMode;
        uint16 DigitMode;
        uint16 EngMode;
        uint16 TagMode;
        uint16 TryTimes;
        uint16 IdleTime;
        uint32 LoadBalance;
        uint16 VoiceStyle;
        uint16 BackAudio;
        uint16 BackAudioVolume;
        uint16 BackAudioFlag;

        uint16 VoiceBufSize; // little-endian
        uint16 InsertInfoSize; // little-endian
        char Reserved[12];

        /*
         * Format 字段：
                0：PCM Native 16KHz 16Bit；
                1：OKI ADPCM, 6KHz, 4bit (Dialogic Vox)；
                2：OKI ADPCM, 8KHz, 4bit (Dialogic Vox)；
                3：A 律, 8KHz, 8Bit；
                4：u 律, 8KHz, 8Bit；
                5：PCM, 8KHz, 8Bit；
                6：PCM, 8KHz, 16Bit；
                7：PCM, 16KHz, 8Bit；
                8：PCM, 16KHz, 16Bit；
         */
        uint16 Format;

        void hton();
};

#endif /* TTSPARAMS_H_ */
